package net.huashitong.Project.dao;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

import net.huashitong.Project.entity.ProjectImages;

@Repository
public class ProImageDao extends StringDao<ProjectImages> {
	
	public ProjectImages query(String proId){
		GenericQuery query = createQuery("obj");
		query.append(" and obj.projectId = :projectId").setParam("projectId", proId);
		return query.singleResult();
	}

}
